package com.jk.garden1.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * 预约管理表
 */
@Data
@TableName("subscribe_table")
@Document(indexName = "subscribe",type = "doc")
public class SubscribeEntity {
    @Id
    @Field(type = FieldType.Integer)
//    @TableId
    private Integer subscribeid;
    @Field(type = FieldType.Text)
    private String visitantname;//访客姓名
    @Field(type = FieldType.Text)
    private String visitantphone;//访客手机
    @Field(type = FieldType.Text)
    private String intervieweename;//被访者姓名
    @Field(type = FieldType.Text)
    private String intervieweecompany;//被访者公司名
    @JsonFormat(pattern = "yyyy-MM-dd:HH:MM:SS")
    @Field(type = FieldType.Text)
    private String subscribetime;//预约时间
    @Field(type = FieldType.Text)
    private String subscribestatus;//访问状态
    @Field(type = FieldType.Text)
    private String throughcard;//卡号






}
